package hackthon.dao;

import hackthon.pojo.UserInfo;
import org.springframework.stereotype.Repository;

/**
 * Created by wuwenhao on 15/1/8.
 */

@Repository
public class LoginDao extends BaseDao{

    @Override
    public String getNameSpace() {
        return "user";
    }

    public UserInfo getUserByUsername(String username){
        UserInfo userInfo = (UserInfo)getSqlMapClientTemplate().queryForObject(getNameSpace()
                +".getUserByUsername",username);
        return userInfo;
    }
}
